/**
 *T_SYS_USER - 用户信息表 model object
 *author:yhb
 */
package com.towker.frame.model.sys;

import java.util.Date;
import java.util.Set;

public class User
{
	@Override
	public String toString()
	{
		return "{id:"+id+",deleteId:"+(userDeptId.equals(0L)?roleUserId:userDeptId)+",account:'"+account+"',name:'"+name+"',isParent:"+(0==status)+",usertype:"+usertype+"}";
	}
	// 主键
	private Long id = 0L;
	// 帐号
	private String account = "";
	// 密码
	private String password = "";
	
	// 类型类型(1,委员,2,提案委 3 .承办单位  4分管副主席 5 主席)
	private int usertype = 1;
	private String name = "";
	private Long flag = 0L;
	/**
	 * 
	 */
	private Integer pid = 0 ;
	/**
	 * 
	 */
	private Integer status = 0;
	
	// 数据库中没有对应的字段属性

	// 是否分配角色。

	private boolean assign = false;
	// 已经分配的编号。

	private Long assignid = 0L;
	// 已经分配的部门编号。

	private Long assignedDepartmentId = 0L;
	//部门编号。

	private Long deptid=0L;
	
	private String deptCode;
	//员工所在部门名称。

	private String deptName="";
	
	//用户部门分配编号。
	private Long userDeptId=0L;
	//用户角色分配编号。
	private Long roleUserId=0L;
	
	private String userCode;
	private String realname;
	private Integer gender;
	private Date dateOfBirth;
	private Integer userNature;
	private Integer coId;
	private String coCode;
	private String coName;
	private String duty;
	private String mobile;
	private String phone;
	private String fax;
	private String email;
	private String customCode;
	private int userStatus;
	private String dataAuthType;
	
	public int getUsertype()
	{
		return usertype;
	}

	public void setUsertype(int usertype)
	{
		this.usertype = usertype;
	}

	public Long getFlag()
	{
		return flag;
	}

	public void setFlag(Long flag)
	{
		this.flag = flag;
	}

	public String getDeptName()
	{
		return deptName;
	}

	public void setDeptName(String deptName)
	{
		this.deptName = deptName;
	}

	public Long getDeptid()
	{
		return deptid;
	}

	public void setDeptid(Long deptid)
	{
		this.deptid = deptid;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public boolean isAssign()
	{
		return assign;
	}

	public void setAssign(boolean assign)
	{
		this.assign = assign;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId()
	{
		return this.id;
	}

	public void setAccount(String account)
	{
		this.account = account;
	}

	public String getAccount()
	{
		return this.account;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public String getPassword()
	{
		return this.password;
	}


	public Long getAssignid()
	{
		return assignid;
	}

	public void setAssignid(Long assignid)
	{
		this.assignid = assignid;
	}

	public Long getAssignedDepartmentId()
	{
		return assignedDepartmentId;
	}

	public void setAssignedDepartmentId(Long assignedDepartmentId)
	{
		this.assignedDepartmentId = assignedDepartmentId;
	}
	public Long getUserDeptId()
	{
		return userDeptId;
	}
	public void setUserDeptId(Long userDeptId)
	{
		this.userDeptId = userDeptId;
	}
	public Long getRoleUserId()
	{
		return roleUserId;
	}
	public void setRoleUserId(Long roleUserId)
	{
		this.roleUserId = roleUserId;
	}

	public int getusertype()
	{
		return usertype;
	}

	public void setusertype(int usertype)
	{
		this.usertype = usertype;
	}


	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Integer getPid()
	{
		return pid;
	}

	public void setPid(Integer pid)
	{
		this.pid = pid;
	}

	public Integer getStatus()
	{
		return status;
	}

	public void setStatus(Integer status)
	{
		this.status = status;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public Date getDateOfBirth() {
		return dateOfBirth;
	}

	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}

	public Integer getUserNature() {
		return userNature;
	}

	public void setUserNature(Integer userNature) {
		this.userNature = userNature;
	}

	public Integer getCoId() {
		return coId;
	}

	public void setCoId(Integer coId) {
		this.coId = coId;
	}

	public String getCoCode() {
		return coCode;
	}

	public void setCoCode(String coCode) {
		this.coCode = coCode;
	}

	public String getCoName() {
		return coName;
	}

	public void setCoName(String coName) {
		this.coName = coName;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCustomCode() {
		return customCode;
	}

	public void setCustomCode(String customCode) {
		this.customCode = customCode;
	}

	public int getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(int userStatus) {
		this.userStatus = userStatus;
	}

	public String getDataAuthType() {
		return dataAuthType;
	}

	public void setDataAuthType(String dataAuthType) {
		this.dataAuthType = dataAuthType;
	}
	
	
}
